package com.things8.iot.common.enums;

import lombok.Getter;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/5/9 21:42
 */
@Getter
public enum GlobalResultEnum {
    SUCCESS(0, "success"),
    FAIL(-1, "fail"),
    PARAM_ERROR(10001, "参数异常"),
    PAGE_PARAM_ERROR(10091, "分页参数转换异常"),

    ;
    private final int code;

    private final String msg;

    GlobalResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
